/* 做数据缓存 */
var cachData;

export function setLocalStorage(key, data){
	uni.setStorage({
		key: key,
		data: data,
		success: () => {
			console.log("setStorage successful");
		}
	})
}

export function getLocalStorage(key){
	let result;
	uni.getStorage({
		key: key,
		success: (res) => {
			result = res.data
		}
	})
	return result
}